using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class RetrieveOptionSetRequest : OrganizationRequest
	{
		public string Name
		{
			get
			{
				if (base.Parameters.Contains("Name"))
				{
					return (string)base.Parameters["Name"];
				}
				return null;
			}
			set
			{
				base.Parameters["Name"] = value;
			}
		}
		public Guid MetadataId
		{
			get
			{
				if (base.Parameters.Contains("MetadataId"))
				{
					return (Guid)base.Parameters["MetadataId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["MetadataId"] = value;
			}
		}
		public bool RetrieveAsIfPublished
		{
			get
			{
				return base.Parameters.Contains("RetrieveAsIfPublished") && (bool)base.Parameters["RetrieveAsIfPublished"];
			}
			set
			{
				base.Parameters["RetrieveAsIfPublished"] = value;
			}
		}
		public RetrieveOptionSetRequest()
		{
			base.RequestName = "RetrieveOptionSet";
			this.MetadataId = default(Guid);
			this.RetrieveAsIfPublished = false;
		}
	}
}
